package com.beiding.bean;

import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer;
import org.springframework.stereotype.Component;

@Component("springSessionDefaultRedisSerializer")
public class RedisSerializer extends JdkSerializationRedisSerializer {


    public Object deserialize(byte[] bytes) {
        try {
            return super.deserialize(bytes);
        } catch (Exception e) {
            return e.getMessage();
        }

    }

}